package com.quzhi.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author Xibing
 * @since 2024-08-18
 */
@TableName("qz_menu")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    private String id;

    /**
     * 地址路径
     */
    private String path;

    private String redirect;

    /**
     * 与Vue路由的name对应
     */
    private String name;

    /**
     * 中午名字,mate:{name:...,icon:...}
     */
    private String nameZh;

    /**
     * 图片名字
     */
    private String iconCls;

    /**
     * 组件名，用于解析路由的组件
     */
    private String component;

    /**
     * 父路由Id
     */
    private String parentId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNameZh() {
        return nameZh;
    }

    public void setNameZh(String nameZh) {
        this.nameZh = nameZh;
    }

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getRedirect() {
        return redirect;
    }

    public void setRedirect(String redirect) {
        this.redirect = redirect;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "id = " + id +
                ", path = " + path +
                ", name = " + name +
                ", redirect = " + redirect +
                ", nameZh = " + nameZh +
                ", iconCls = " + iconCls +
                ", component = " + component +
                ", parentId = " + parentId +
                "}";
    }
}
